package com.candyman.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.candyman.common.utils.PageUtils;
import com.candyman.gulimall.product.entity.AttrEntity;
import com.candyman.gulimall.product.vo.AttrGroupRelationVO;
import com.candyman.gulimall.product.vo.AttrRespVO;
import com.candyman.gulimall.product.vo.AttrVO;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author Candyman
 * @email 2486851669@qq.com
 * @date 2025-01-28 23:13:23
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVO attr);

    AttrRespVO getAttrInfo(Long attrId);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId, String type);

    void updateAttr(AttrVO attr);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    void deleteRelation(AttrGroupRelationVO[] vos);

    PageUtils getNoRelationAttr(Map<String, Object> params, Long attrgroupId);

    List<AttrEntity> getBatchIds(List<Long> attrIds);

    List<Long> selectSearchAttrIds(ArrayList<Long> longs);
}

